[t:/]$ 지식_

pygithub create file

2016/02/26

pygithub는 현 버전에서 레파짓에 파일을 새로 생성하는 것을 지원하지 않는다.

현재 pull req.로 해당 기능을 구현한 분이 있으며, 오케이 사인 난 것으로 보아 정신 버전에 병합 될 것이다.

https://github.com/enix223/PyGithub 에서 먼저 받을 수 있다.

사용은 다음과 같이 한다.

from github import Github

g = Github('dawnsea', '****')
repo = g.get_user().get_repo('tblog_contents')
repo.create_file('/heheh.txt', 'first', 'kjsdlfjsdlkjflkjflksdjl')




공유하기













[t:/] is not "technology - root". dawnsea, rss